<template>
	<view class="home">
		<detail :item="item"></detail>
		<!-- <view class="btn">
			<u-button type="primary" size="large" text="返 回" @click="returnHome">
			</u-button>
		</view> -->
	</view>
</template>

<script>
	export default {
		onLoad() {
			    console.log("进入了编辑地址页面");
				var data = uni.getStorageSync('reportInfo')//取出缓存数据
				var res = JSON.parse(data)
				this.item = res
				uni.removeStorageSync('reportInfo')
				var data = uni.getStorageSync('reportInfo')//销毁缓存数据
				console.log(data);
				console.log(res)
				console.log(this.item)
		},
		data() {
			return {
				item:{}
			};
		},
		methods:{
			returnHome(){
				uni.navigateTo({
					url:'/pages/selectAnonymous/selectAnonymous'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
.home{
	.btn{
		margin: 24rpx 30rpx;
	}
}
</style>
